<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">



var div = window.parent.document.getElementById("p");
// alert(div);
// alert(parent.bl);
function sj()
{
	var div = window.parent.document.getElementById("p");
	alert(div);
	alert(parent.bl);
}
var lj = "lj13.jsp";
function gy(){

	alert(lj);
}
</script>
</head>
<body>
lj12
<button onclick="sj()">弹出父窗口消息</button>
<button onclick="gy()">弹出公用变量</button>
</body>
</html>